import request from '@/utils/request'

export function getPage(data,pageNum) {
  return request({
    url: '/banner/getList/'+pageNum,
    method: 'post',
    data
  })
}
export function saveOrUpdate(data) {
  return request({
    url: '/banner/saveOrUpdate',
    method: 'post',
    data
  })
}

export function deleteById(id) {
  return request({
    url: '/banner/'+id,
    method: 'delete',
  })
}
